#!/bin/sh

echo "we create a folder to store the dowload files";

mkdir dl
cd dl

wget -nv -c http://gwt-dnd.googlecode.com/files/gwt-dnd-2.5.4.jar
wget -nv -c http://gwt-dnd.googlecode.com/files/gwt-dnd-2.5.4-javadoc.jar
wget -nv -c http://gwt-log.googlecode.com/files/gwt-log-2.5.0.jar
wget -nv -c http://ovh.dl.sourceforge.net/sourceforge/junit/junit-4.5.jar
wget -nv -c http://mir2.ovh.net/ftp.apache.org/dist/logging/log4j/1.2.15/apache-log4j-1.2.15.zip
#wget -nv -c http://www.db4o.com/downloads/db4o-7.4-java.zip
wget -nv -c http://www.db4o.com/downloads/db4o-7.2-java.zip
wget -nv -c http://google-web-toolkit-incubator.googlecode.com/files/gwt-incubator_1-5_Sept_04.zip
wget -nv -c http://www.slf4j.org/dist/slf4j-1.5.6.tar.gz

#wget -nv -c http://repository.codehaus.org/org/picocontainer/picocontainer/2.8/picocontainer-2.8.jar
#wget -nv -c http://repository.codehaus.org/org/picocontainer/picocontainer/2.8/picocontainer-2.8-javadoc.jar

wget -nv -c http://mockito.googlecode.com/files/mockito-1.6.zip

unzip db4o-7.2-java.zip db4o-7.2/lib/db4o-7.2.54.11278-java5.jar
mv db4o-7.2/lib/db4o-7.2.54.11278-java5.jar ./
rm -rf db4o-7.2/

#unzip db4o-7.4-java.zip db4o-7.4/lib/db4o-7.4.57.11456-java5.jar
#mv db4o-7.4/lib/db4o-7.4.57.11456-java5.jar ./
#rm -rf db4o-7.4/

unzip apache-log4j-1.2.15.zip apache-log4j-1.2.15/log4j-1.2.15.jar
mv apache-log4j-1.2.15/log4j-1.2.15.jar ./
rm -rf apache-log4j-1.2.15/

unzip gwt-incubator_1-5_Sept_04.zip gwt-incubator_1-5_Sept_04/gwt-incubator.jar
mv gwt-incubator_1-5_Sept_04/gwt-incubator.jar ./
rm -rf gwt-incubator_1-5_Sept_04/

tar xzvf slf4j-1.5.6.tar.gz slf4j-1.5.6/slf4j-api-1.5.6.jar
mv slf4j-1.5.6/slf4j-api-1.5.6.jar ./
tar xzvf slf4j-1.5.6.tar.gz slf4j-1.5.6/slf4j-log4j12-1.5.6.jar
mv slf4j-1.5.6/slf4j-log4j12-1.5.6.jar ./
rm -rf slf4j-1.5.6/

unzip mockito-1.6.zip separate-jars/*.jar
mv separate-jars/*.jar ./
rm -rf separate-jars/

cp *.jar ../lib	

